USE [HMS]
GO

/****** Object:  Table [dbo].[Doctor_DayOff]    Script Date: 12/01/2014 22:23:18 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Doctor_DayOff](
	[Doc_Day_Off_Id] [int] IDENTITY(1,1) NOT NULL,
	[Doc_Id] [int] NOT NULL,
	[Slot_From] [time](0) NULL,
	[Slot_To] [time](0) NULL,
	[Created_By] [int] NOT NULL,
	[Created_Date] [datetime] NOT NULL,
	[Modified_By] [int] NOT NULL,
	[Modified_Date] [datetime] NOT NULL,
	[Doc_Day_Off] [date] NOT NULL,
 CONSTRAINT [PK_Doctor_DayOff] PRIMARY KEY CLUSTERED 
(
	[Doc_Day_Off_Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[Doctor_DayOff]  WITH CHECK ADD  CONSTRAINT [FK_Doctor_DayOff_Doctor] FOREIGN KEY([Doc_Id])
REFERENCES [dbo].[Doctor] ([Doc_Id])
GO

ALTER TABLE [dbo].[Doctor_DayOff] CHECK CONSTRAINT [FK_Doctor_DayOff_Doctor]
GO


